package com.bit.www;

public class Student {
    public String name;
    public int age;
    public static  String classroom="118期";
    public void study() {
        System.out.println(name + "正在学习");
    }
        public void eat(){
            System.out.println(name+"正在吃零食");
        }

        public Student(){

        }
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static String getClassroom() {
        return classroom;
    }

    public static void setClassroom(String classroom) {
        Student.classroom = classroom;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
